//
//  MYXRedListCell.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/11/21.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYXRedListCell.h"
#import "MYCmymoneylogModel.h"
#import <HexColor.h>
@implementation MYXRedListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.lineView_H.constant = 0.5;
}


-(void)setMYCmymoneylogMo:(MYCmymoneylogModel *)MYCmymoneylogMo{
    _MYCmymoneylogMo = MYCmymoneylogMo;
   self.timeLabel.text = [MYXDateTimeHelper restMoneyTimeWithTimeIntervalString:MYCmymoneylogMo.change_time];
   self.redLabel.text =MYCmymoneylogMo.desc;
    if (![MYCmymoneylogMo.user_money containsString:@"-"]) {
        self.titileLabel.textColor =[UIColor colorWithHexString:@"ea4f48"];
        self.titileLabel.text =[NSString stringWithFormat:@"+%@",MYCmymoneylogMo.user_money];

    }else{
        self.titileLabel.textColor =[UIColor blackColor];
        self.titileLabel.text =MYCmymoneylogMo.user_money;

    }
  
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
